import { LinkContent } from 'easy-template-x';
import { Content } from './Content';

export class Link extends Content implements LinkContent {
    _type: 'link';
    text?: string;
    target: string;
    tooltip?: string;

    constructor(target: string, text?: string, tooltip?: string) {
        super('link');
        this.target = target;
        if (text) {
            this.text = text;
        } else {
            this.text = target;
        }
        this.tooltip = tooltip;
    }
    
    
}